package com.education.basic.ao;

import java.util.List;
import java.util.Map;

import javax.servlet.http.HttpServletRequest;

import com.education.basic.entity.Department;
import com.yunshangwoniu.core.page.Page;
  
public interface DepartmentAo
{
	/**
	 * 列表页
	 * @param currentPage
	 * @param pageSize
	 * @param params
	 * @return
	 */
	Page<Department> departmentList(int currentPage,int pageSize,Map<String,Object> params,HttpServletRequest request);
	/**
	 * 新增
	 * @param d
	 * @return
	 */
	Department newDepartment(Department d);
	/**
	 * 删除
	 * @param departmentId
	 */
	void removeDepartment(long departmentId);
	/**
	 * 更新
	 * @param d
	 */
	void update(Department d);
	
	/**
	 * 查找
	 * @param id
	 * @return
	 */
	Department findDepartmentById(long id);
	/**
	 * 通过名字查找
	 * @param name
	 * @return
	 */
	Page<Department> findDepartmentByName(String name,HttpServletRequest request);
	
	/**
	 * 批量删除
	 * @param ids
	 */
	void batchDeleteDepartment(List<Long> ids);
	
}
 